<template>
  <h3 @click="handleChange">05-为事件处理函数标注类型</h3>

  <input type="text" @change="handleChange" />
</template>

<script setup lang="ts">
function handleChange(event: Event) {
  // `event` 隐式地标注为 `any` 类型
  // event.target : 获取触发事件的元素
  console.log((event.target as HTMLInputElement).value);
}
</script>

<style scoped></style>
